<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Hello extends CI_Controller {
  function index() {
    echo '<html><body>';
    $name = $this->input->get('name');
    if ($name) {
      echo "Hello, <strong>$name</strong>!";
    }
    else {
      echo 'Hello, <strong>World</strong>!';
    }
    echo '</body></html>';
  }

}